﻿@model Pku.BookStore.Model.UserModel
@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.Title = "用户资料-后台管理";
}
<link href="/Content/user.self.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jsAddress.js" type="text/javascript"></script>
<div class="right">
    <div class="o-mt">
        <h2>
            用户信息</h2>
    </div>
    <div class="m" id="baseinfo">
        <div class="mc">
            <div class="i-m">
                <div class="i-mc">
                    @using (Html.BeginForm())
                    {
                        <div class="form">
                            <div class="item">
                                <span class="label">登录名：</span>
                                <div class="fl">
                                    <strong class="username">@Html.Label(Model.UserName)</strong>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">会员类型：</span>
                                @Html.RadioButton("LevelID", "0", Model.LevelID == 0)<label>普通会员</label>
                                @Html.RadioButton("LevelID", "1", Model.LevelID == 1)<label>VIP会员</label>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">性别：</span>
                                @Html.RadioButton("Gender", "0", Model.Gender == 0)<label>男</label>
                                @Html.RadioButton("Gender", "1", Model.Gender == 1)<label>女</label>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>真实姓名：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("TrueName", Model.TrueName, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>Email：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("Email", Model.Email, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>电话：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("Phone", Model.Phone, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>手机：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("Mobile", Model.Mobile, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>地址：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("Address", Model.Address, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>邮编：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("PostCode", Model.PostCode, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">所在地：</span>
                                <div class="fl">
                                    <select name="Province" class="sele" id="Province">
                                    </select>
                                    <select name="City" class="sele" id="City">
                                    </select>
                                    <select name="Area" class="sele" id="Area">
                                    </select>
                                    <div class="clr">
                                    </div>
                                    <div class="prompt-06">
                                        <span id="province_msg"></span>
                                    </div>
                                    <script type="text/javascript">
                                        addressInit('Province', 'City', 'Area', '@Model.Province', '@Model.City', '@Model.Area');
                                    </script>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">用户状态：</span>
                                @Html.RadioButton("IsLock", "1", Model.IsLock == 1)<label>正常</label>
                                @Html.RadioButton("IsLock", "0", Model.IsLock == 0)<label>锁定</label>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">&nbsp;</span>
                                <div class="fl">
                                    @Html.TextBox("Act", "E", new { @style = "display:none" })
                                    <input id="submitBtn" type="image" src="@Url.Content("~/images/btn_sub.gif")"  onclick="return btnClick();" style=" margin-right:80px" />
                                    <input id="submitBtn" type="image" src="@Url.Content("~/images/btn_back.gif")"  onclick="javascript:history.go(-1);" />
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">&nbsp;</span>
                                <div class="fl">
                                    @Html.ValidationMessage("Info")
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
